<template>
  <div>
    <h1>检查arguments作用域</h1>
  </div>
</template>

<script>
export default {
  mounted () {
    this.checkArguments()
  },
  methods: {
    checkArguments () {
      let num = {
        a: 1,
        b: 2
      }
      s1(num)
      function s1 (num) {
        console.log(arguments)
        s2(num.b)
      }
      function s2 (n) {
        console.log(arguments)
      }
    }
  }
}
</script>
